package kr.co.bit.location;

public class PointVO {
	String location;
	Double latitude;
	Double longitude;
	public PointVO(String location, Double latitude, Double longitude) {
		this.location = location;
		this.latitude = latitude;
		this.longitude = longitude;				
	}
	public ResultVO calcuDistance(PointVO vo){
		ResultVO resultVO = new ResultVO();
		resultVO.distance =	Math.sqrt((Math.pow((this.latitude - vo.latitude),2) +
				Math.pow((this.longitude - vo.longitude),2)));
		resultVO.name = this.location;
		return resultVO;
	}
};
